package com.yunhe.policyfulfillment.policyful.service;
import com.yunhe.policyfulfillment.policyful.domain.PolicyApplyMatterStatistics;
import com.yunhe.policyfulfillment.policyful.model.ApprovalStatisticalAnalysis;
import com.yunhe.policyfulfillment.policyful.model.PolicyStatisticsRateVO;

import java.text.ParseException;
import java.util.List;
import java.util.Map;
/**
 * @description 申请事项处理统计分析
 * @author misty
 * @date 2021-09-18
 */
public interface PolicyApplyMatterStatisticsService {

    /**
     * 新增
     */
    public int createPolicyApplyMatterStatistics (PolicyApplyMatterStatistics policyApplyMatterStatistics);

    /**
     * 删除
     */
    public int deletePolicyApplyMatterStatistics(int id);

    /**
     * 更新
     */
    public int updatePolicyApplyMatterStatistics(PolicyApplyMatterStatistics policyApplyMatterStatistics);

    /**
     * 根据主键 id 查询
     */
    public PolicyApplyMatterStatistics findPolicyApplyMatterStatisticsById(int id);


    void matterHandleStatistics() throws InterruptedException;

    /**
     * @Description 政策申请统计
     * @Param String time
     * @Return List<PolicyStatisticsRateVO>
     * @Date 2021/9/19 9:40
     */
    List<PolicyStatisticsRateVO> applyMatterStatistics(String time);

    /**
     * @Description 资金发放统计
     * @Param String time
     * @Return List<PolicyStatisticsRateVO>
     * @Date 2021/9/19 10:47
     */
    List<PolicyStatisticsRateVO> fundReleaseStatistics(String time);

    /**
     * @Description 审批统计分析
     * @Param String time, String orgType
     * @Return List<ApprovalStatisticalAnalysis>
     * @Date 2021/9/19 15:24
     */
    List<ApprovalStatisticalAnalysis> approvalStatisticalAnalysis(String time, String orgType) throws ParseException;
}